# coding: utf-8 -*-
# author: 梁开孟
# date：2021/5/19 0019 00:28
from sklearn.datasets import make_friedman1
from sklearn.feature_selection import RFECV
from sklearn.svm import SVR

x, y = make_friedman1(n_samples=50, n_features=10, random_state=0)
estimator = SVR(kernel='linear')
select = RFECV(estimator, step=1, cv=10).fit(x, y)

print(select.support_)
print(select.ranking_)

# print(x)
print(y)
